package com.begonzales.locker.datadictionary;

/**
 * Created by IntelliJ IDEA.
 * User: BGONZ8
 * Date: 9/20/11
 * Time: 2:42 PM
 * To change this template use File | Settings | File Templates.
 */
public class AppField {

    protected String columnFieldName = "";
	protected String columnFieldType = "";
	protected String columnMetaName = "";
    protected Boolean isPrimaryKey = false;
    protected String itemJavaType = "String";
    protected String itemAccessName = "protected";

    public AppField(String itemAccessName, String columnFieldName, String columnFieldType, String columnMetaName, String itemJavaType, Boolean isPrimaryKey)
    {
        this.columnFieldName = columnFieldName;  // PARENT_ID
        this.columnFieldType = columnFieldType;  // DECIMAL, VARCHAR
        this.columnMetaName = columnMetaName;    // id
        this.isPrimaryKey = isPrimaryKey;
        this.itemJavaType = itemJavaType;        // String, Long
        this.itemAccessName = itemAccessName;    // private
    }

    public String getColumnFieldName() {
        return columnFieldName;
    }

    public void setColumnFieldName(String columnFieldName) {
        this.columnFieldName = columnFieldName;
    }

    public String getColumnFieldType() {
        return columnFieldType;
    }

    public void setColumnFieldType(String columnFieldType) {
        this.columnFieldType = columnFieldType;
    }

    public String getColumnMetaName() {
        return columnMetaName;
    }

    public void setColumnMetaName(String columnMetaName) {
        this.columnMetaName = columnMetaName;
    }

    public Boolean getPrimaryKey() {
        return isPrimaryKey;
    }

    public void setPrimaryKey(Boolean primaryKey) {
        isPrimaryKey = primaryKey;
    }

    public String getItemJavaType() {
        return itemJavaType;
    }

    public void setItemJavaType(String itemJavaType) {
        this.itemJavaType = itemJavaType;
    }

    public String getItemAccessName() {
        return itemAccessName;
    }

    public void setItemAccessName(String itemAccessName) {
        this.itemAccessName = itemAccessName;
    }

}
